package day02;
//double类型的演示
public class DoubleDemo {
    public static void main(String[] args) {
        //double:双精度浮点型，8个字节
        double a =3.14;//3.14为小数的直接量，默认为double类型
        float b = 3.14F;
        double c=3.0,d=2.9;
        //以下的运算结果可能会发生舍入误差
        System.out.println(c-d);
        double e=6.02,f=4.91;
        System.out.println(e-f);
        double g=6.0,h=1.9;
        System.out.println(g-h);
    }
}
